package test;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author luojing
 * @create 2018/08/28 下午2:04
 **/
public class MyThreadPool {

  public static void main(String[] args) {
    ExecutorService executorService = new ThreadPoolExecutor(10,20,100, TimeUnit.SECONDS,new LinkedBlockingDeque<Runnable>());
    executorService.submit(new Runnable() {
      @Override
      public void run() {
        System.out.println("123");
      }
    });
  }

}
